const TokenKey = 'authorization'

export function getToken() {
  return sessionStorage.getItem(TokenKey)
}

export function setToken(token) {
  return sessionStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return sessionStorage.removeItem(TokenKey)
}

export function setEnterpriseName(enterpriseName) {
  return sessionStorage.setItem('enterpriseName', enterpriseName)
}

export function getEnterpriseName(enterpriseName) {
  return sessionStorage.getItem('enterpriseName')
}

export function getQrCodeUrl() {
  return sessionStorage.getItem('qrCodeUrl')
}

export function setQrCodeUrl(qrCodeUrl) {
  return sessionStorage.setItem('qrCodeUrl', qrCodeUrl)
}
